package main;

import people.Character;

public class CharCreation {

	static String name;
	static String s;
	static IntroFrame intro;
	static String[] args;
	
	public static void main(String[] args) {
		CharCreation.args = args;
		intro = new IntroFrame();
		intro.setTitle("Welcome to Adventures of Adventure Land");
	}

	public static void createChar(String s) {
		printInstructions();
		switch(s) {
		case "Wizard":
			Character.c = new Character(name, (short) 1);
			Character.jobId = 1;
			MainMap.main(args);
			break;
		case "Warrior":
			Character.c = new Character(name, (short) 2);
			Character.jobId = 2;
			MainMap.main(args);
			break;
		case "Thief":
			Character.c = new Character(name, (short) 3);
			Character.jobId = 3;
			MainMap.main(args);
			break;
		case "Archer":
			Character.c = new Character(name, (short) 4);
			Character.jobId = 4;
			MainMap.main(args);
			break;
		default:
			print("Impossible choice");
			break;
		}
	}
	
	public static void print(String s) {
		System.out.println(s);
	}
	
	public static void printInstructions() {
		print("Welcome to Adventures of Adventure Land, " + name + ".");
		print("In order to enjoy your stay here, you will need to know how to play");
		print("");
		print("Move all 4 of the boxes now open so that you will be able to see all of them");
		print("To move or attack, press the corresponding buttons on the Navigation box.  ");
		print("");
		print("The Stick Person Empire has been invaded by the Red Squares of Doom");
		print("You have to be on top of the red squares of doom to be able to attack them");
		print("The red squares of doom turn to orange squares of doom when you step on them");
		print("When you vanquish an orange square of doom, it turns into a yellow square of doom");
		print("After you walk off of the yellow square of doom, it gets vaporized");
		print("The floor is made out of friendly green squares of happiness");
		print("It is up to YOU to save the Stick Person Empire from utter destruction at the hands of the Red Squares of doom");
		print("");
		print("Attack Styles: ");
		print("Melee: An attack style based on mostly strength.  Warriors should use this");
		print("Ranged: An attack style based on mostly dexterity.  Archers and Thiefs should use this.");
		print("Magic: An attack style based on only intellect.  Only wizards should use this");
		print("");
		print("Both Melee and Ranged are able to be used interchangably, depending on the enemy monster's stats.");
		print("");
		print("");
		print("");
	}
}
